POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
30 Jul 2024 00:27:26 EDT (-0400)
  Re: Random number generator needed !  
From: Warp
Date: 21 Feb 2001 09:11:41
Message: <3a93cc9d@news.povray.org>
Wlodzimierz ABX Skiba <abx### [at] abxartpl> wrote:
:   rand(seed(val(concat(str(I1,0,0),str(I2,0,0)))))

  Isn't this effectively the same as:

  rand(seed(I1*I2))

?

  (Not identically the same result, but effectively the same idea.)

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.